/*
 * SpringGuardCommand.cpp
 *
 *  Created on: Nov 20, 2008
 *      Author: Ryan
 */

#include "SpringGuardCommand.h"

SpringGuardCommand::SpringGuardCommand( OOInterface::ConstUnitPtr target ) :
	GuardCommand( target )
{
}

SpringGuardCommand::~SpringGuardCommand()
{
}

::Command* SpringGuardCommand::getCommand() const
{
	OOInterface::ConstUnitPtr guard = getGuardedUnit();
	::Command* cmd = new ::Command;
	cmd->id = CMD_GUARD;
	cmd->params.push_back( guard->getID() );

	return cmd;
}
